import pandas as pd
import numpy as np

df = pd.DataFrame(np.random.randn(10, 4))
print(df)
print('------')

# 拆分为三个df
arr = [df[:3], df[3:7], df[7:]]

# 合并三个df
df1 = pd.concat(arr)
print(df1)
